﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TrainingWorkshop.DAL_EF.Translator
{
   public  class LevelTranslator
    {
        /// <summary>
        /// Convert EF Level list into Model Level list
        /// </summary>
        /// <param name="inputList">EF Level List</param>
        /// <returns>Model List</returns>
        public static List<Model.Level> EFToModelLevel(List<Level> inputList)
        {
            List<Model.Level> levelList = new List<Model.Level>();
            foreach (Level t in inputList)
            {
                Model.Level level = new Model.Level();
                level.LevelId = t.LevelId;
                level.LevelName = t.LevelName;
                levelList.Add(level);
            }
            return levelList;
        }
    }
}
